package com.yy.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yy.entity.Pharmacy;
import com.yy.query.RegisterQuery;
import com.yy.service.PharmacyService;
import com.yy.mapper.PharmacyMapper;
import org.springframework.stereotype.Service;

/**
* @author 雨
* @description 针对表【pharmacy】的数据库操作Service实现
* @createDate 2024-06-07 11:42:25
*/
@Service
public class PharmacyServiceImpl extends ServiceImpl<PharmacyMapper, Pharmacy>
    implements PharmacyService{

    @Override
    public IPage<Pharmacy> getPage(RegisterQuery registerQuery) {
        int pageNum= registerQuery.getPageNum();
        int pageSiza= registerQuery.getPageSize();
        Page<Pharmacy> page=new Page<>(pageNum,pageSiza);
        Page<Pharmacy> Rpage=this.baseMapper.getReportQuery(page,registerQuery);
        return Rpage;
    }
}




